.tableBac {
  background-color: #f5f7fa;

  .ant-table-cell-fix-right {
    background: #f5f7fa;
  }
}

.ant-picker {
  width: 100%;
}

.ant-input-number {
  width: 100% !important;
}

.ant-form-item-label {
  min-width: 70px; //设置label的最小宽度 展示效果更佳
}

.ant-row {
  width: 100%;
}

/*全局滚动条样式*/
::-webkit-scrollbar {
  width: 6px;
  height: 5px;
}

::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background-color: #929ead;
}

/* antd Tabs Reset */
.ant-tabs-nav {
  background-color: var(--color-bg-1);
  color: rgba(0, 0, 0, 0.88);
  box-sizing: border-box;
  padding-left: 12px;
  margin-bottom: 0 !important;
}

.ant-tabs .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
  color: var(--primary-color);
}

.ant-tabs .ant-tabs-ink-bar {
  background: var(--primary-color);
}

/* antd Modal Reset */

.ant-modal .ant-modal-content {
  padding: 0;

  .ant-modal-close {
    top: 5px;
    right: 8px;
  }

  .ant-modal-header {
    height: 44px;
    text-align: center;
    background: #fff;
    .ant-modal-title {
      height: 100%;
      line-height: 44px;
      color: #333;
      border-bottom: 1px solid var(--color-border-2);
    }
  }

  .ant-modal-body {
    padding: 10px 24px;
  }
  .ant-modal-footer {
    box-sizing: border-box;
    border-top: 1px solid var(--color-border-2);
    padding: 10px;
  }
}

.flex_end {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.custom_table_style .ant-typography {
  margin-bottom: 0;
}

.custom_table_style {
  background-color: var(--color-bg-1);
  display: flex;
  flex-direction: column;
  padding: 0 12px 12px;
  .ant-table-summary {
    font-family: SourceHanSansCN, SourceHanSansCN;
  }
  .ant-table-expanded-row .ant-table-expanded-row-fixed .ant-table-wrapper {
    margin: 12px 0;
  }
  .ant-table-wrapper .ant-table-thead > tr > th {
    color: var(--color-text-1);
    font-family: SourceHanSansCN, SourceHanSansCN;
    font-weight: 500;
    padding: 8px 12px;
    background-color: var(--color-bg-2);
    border-color: var(--color-border-2) !important;
  }

  .ant-table-wrapper .ant-table-tbody > .ant-table-row > .ant-table-cell {
    font-family: SourceHanSansCN, SourceHanSansCN;
    font-weight: 400;
    color: var(--color-text-1);
    padding: 3px 12px;
    height: 40px;
    border-bottom: 1px solid var(--color-border-2);
  }
  .ant-table-content {
    //防止出现蓝色的线
    outline: none;
  }

  .zebra-row-odd {
    background-color: #f6f6f6 !important;
    .ant-table-cell-fix-left,
    .ant-table-cell-fix-right {
      background-color: #f6f6f6 !important;
    }
  }

  .table-row-gray .ant-table-cell {
    color: #bbb !important;
    div {
      color: #bbb !important;
    }
    span {
      color: #bbb !important;
    }
    a {
      color: #bbb !important;
    }
    .ant-badge-color-volcano {
      background-color: #bbb !important;
    }
    * {
      color: #bbb !important;
    }
  }

  .ant-table-row-selected .ant-table-cell {
    background-color: #f0fffd !important;
  }
  .ant-pagination {
    display: block !important;
  }

  .ant-table-wrapper {
    .ant-table-body {
      .ant-table-tbody {
        tr {
          td:last-child {
            border-right: none;
          }
        }
      }
    }
  }
}

.small_sise_customtable {
  * {
    font-size: 12px;
  }
  .ant-table-wrapper .ant-table-thead > tr > th {
    padding: 4px 3px;
  }

  .ant-table-wrapper .ant-table-tbody > .ant-table-row > .ant-table-cell {
    padding: 4px 3px;
    .ant-badge-status-text {
      font-size: 12px;
    }
    .ant-input-number-handler-wrap {
      display: none;
    }
  }

  .table-row-gray .ant-table-cell {
    color: #bbb !important;
    div {
      color: #bbb !important;
    }
    span {
      color: #bbb !important;
    }
    a {
      color: #bbb !important;
    }
    .ant-badge-color-volcano {
      background-color: #bbb !important;
    }
    * {
      color: #bbb !important;
    }
  }
}

.table_extra_flex_wrapbox {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.table_extra_flex {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  row-gap: 8px !important;
}
// .table_extra_flex > * {
//   margin-top: 12px;
// }

// Image 预览文案

.table_image {
  .ant-image-img {
    object-fit: contain;
  }
  .ant-image-mask-info .anticon-eye {
    display: none;
  }
}

// table 带border

.header_table_style {
  background-color: var(--color-bg-1);
  padding: 12px 0;
  display: flex;
  flex-direction: column;

  .ant-table-wrapper .ant-table-thead > tr > th {
    color: var(--color-text-1);
    font-family: SourceHanSansCN, SourceHanSansCN;
    font-weight: 500;
    padding: 8px 12px;
  }

  .ant-table-wrapper .ant-table-tbody > .ant-table-row > .ant-table-cell {
    font-family: SourceHanSansCN, SourceHanSansCN;
    font-weight: 400;
    color: var(--color-text-1);
    height: 40px;
  }
}

.hover_intable_style:hover {
  cursor: pointer;
  border: 1px dashed var(--color-border-1);
  user-select: none;
}

//select没有内容时样式
.ant-select-dropdown-empty .ant-select-item-empty .ant-empty {
  margin-block: 24px;
}

//ant-descriptions样式重置
.ant-descriptions-item-container {
  .ant-descriptions-item-label {
    color: rgba(0, 0, 0, 0.75);
    font-weight: 500;
  }
  .ant-descriptions-item-content {
    color: rgba(0, 0, 0, 0.6);
  }
}

.mini_table_custom_style {
  .ant-table-wrapper .ant-table-thead > tr > th {
    font-size: 12px !important;
  }
  .ant-table-wrapper .ant-table-tbody > .ant-table-row > .ant-table-cell {
    font-size: 12px !important;
  }
}
